<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@  taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/BSindex.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<script src="js/BSindex.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	<div class="mean">
		<div class="logo">
			<a href="index.jsp"><img src="img/alogo.png" alt="" /></a>
		</div>

		<div class="mean_ul">
			<div class="mean_li" onclick="sss('u')">用户管理</div>
			<div class="user_list" id="user_list">
				<div class="mm">
					<a href="/fruits/admin/AdminShowAllUsersServlet">全部用户</a>
				</div>
				<div class="mm">
					<a href="BSindex2.jsp">添加用户</a>
				</div>
			</div>
			<div class="mean_li" onclick="sss('f')">商品管理</div>
			<div class="fruit_list" id="fruit_list">
				<div class="mm"><a href="/fruits/admin/AdminShowAllGoodsServlet?pageNum=1">库存水果</a></div>
      			<div class="mm"><a href="/fruits/admin/AdminShowAllHotGoodsServlet?pageNum=1">热卖水果</a></div>
				<div class="mm">
					<a href="BSindex5.jsp">水果入库</a>
				</div>
			</div>
		</div>

	</div>


	<div class="gong" id="x4">
		<div class="con">
			<div class="tit">
				<ul>
					<li>水果</li>
					<li class="i">&nbsp;</li>
					<li>规格</li>
					<li class="i">&nbsp;</li>
					<li>单价</li>
					<li class="i">&nbsp;</li>
					<li>操作</li>
				</ul>
			</div>
			<c:forEach   items="${goodsinfo.list}"  var="good">
				<div class="info">
					<ul>
						<li><a href="#">${good.fname}</a></li>
						<li class="i">&nbsp;</li>
						<li><a href="#">${good.fnorm}</a></li>
						<li class="i">&nbsp;</li>
						<li><a href="#">${good.fprice}</a></li>
						<li class="i">&nbsp;</li>
						<li><a href="/fruits/admin/AdminRemoveGoodByFidServlet?fid=${good.fid}">删除</a></li>
					</ul>
				</div>
			</c:forEach>
			<c:if test="${goodsinfo.pageNum!=1}">
				<a href="/fruits/admin/AdminShowAllGoodsServlet?pageNum=${goodsinfo.pageNum-1}">上一页</a>
			</c:if>
			<c:if test="${goodsinfo.pageNum!=goodsinfo.pages}">
				<a href="/fruits/admin/AdminShowAllGoodsServlet?pageNum=${goodsinfo.pageNum+1}">下一页</a>
			</c:if>
			

		</div>
	</div>



</body>
</html>

